package com.snail.billing.json;

import org.json.JSONException;
import org.json.JSONObject;

public class JsonLoopMobile extends JsonBase {

	private String aid;
	private String mobile;
	private String mobileType;
	private boolean uuidAuth;

	public JsonLoopMobile(String jsonString) {
		super(jsonString);
		try {
			if (getCode() == 1) {
				JSONObject json = new JSONObject(jsonString);
				if (json.has("aid")) {
					aid = json.getString("aid");
				}
				if (json.has("mobile")) {
					mobile = json.getString("mobile");
				}
				if (json.has("mobileType")) {
					mobileType = json.getString("mobileType");
				}
				if (json.has("uuidAuth")) {
					uuidAuth = json.getBoolean("uuidAuth");
				}
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

	public String getAid() {
		return aid;
	}

	public String getMobile() {
		return mobile;
	}

	public String getMobileType() {
		return mobileType;
	}

	public boolean isUuidAuth() {
		return uuidAuth;
	}

}
